import QtQuick
import QtQuick.Window
import People 1.0

Window {
    width: 600; height: 480
    visible: true

    Person {
        id: person
        name: "Bob Jones"; shoeSize: 12
        onNameChanged: { console.log("New name: " + name); }
    }

    Column {
        Text {
            text: "Person name: " + person.name
        }
        Text {
            text: "Person shoe size: " + person.shoeSize
        }
    }

    MouseArea {
        anchors.fill: parent
        onClicked: { person.name = "John Doe"; }
    }
}
